<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>

<%@ page language="java" import='java.util.ArrayList'%>
<%@ page language="java" import='java.util.List'%>
<%@ page language="java" import='com.dgac.licencias.to.*'%>
<%@ page language="java" import='com.dgac.licencias.util.*'%>
<%@ page language="java" import='java.text.DecimalFormat'%>

<% 
    String busqueda=request.getParameter("busqueda");
    boolean bus=false;
    if(busqueda!=null)bus=true; 
%>

<jsp:include page="../cabecera.jsp" flush="true"/>

<script> 
    function buscar(){
        document.forms[0].action='bauditor.htm';
        document.forms[0].submit();
    }
    function nuevo(){
        document.forms[0].action='nauditor.htm';
        document.forms[0].submit();
    }
</script>

<form:form action="bauditor.htm" method="post" modelAttribute="bauditor">
      
<table width="100%" align="center" bgcolor="#fffdd6" border="0">
  <tbody>
  <tr>
    <td><div class="Titulo1B" align="center">LISTADO DE AUDITORES</div></td>
  </tr>
  <tr>
    <td>
      <table width="98%" align="left">
        <tbody>
        <tr>
          <td>
            <fieldset class="TablaBorde">
                <legend class="TituloAzulClaro">Filtrado  por </legend>
                <table width="500" align="center">
                  <tbody>
                  <tr>
                    <td class="TituloAzulClaro" align="right">Apellido Paterno</td>
                    <td><form:input path="apePaterno"/></td>
                    <td class="TituloAzulClaro" align="right"></td>
                    <td></td>
                  </tr>
                  </tbody>
                </table>
              </fieldset>
           </td>
          </tr>
        </tbody>
      </table>
  </td>
  </tr>
  <tr>
    <td class="TextoPortal" colspan="2">
      <div align="center">
           <input class="boton" onclick="javascript:buscar();" type="button" value="Buscar" name="Submit22"> 
          <input class="boton" onclick="javascript:nuevo();" type="button" value="Agregar" name="Submit21"> 
      </div>
      </td>
 </tr>
 </tbody>
 </table>
 
        
     <display:table  name="lauditor" requestURI="bauditor.htm"  class="consultanormal" pagesize="10"
       defaultsort="1" defaultorder="ascending" sort="list" export="true" id="row" excludedParams="ajax" >
        <display:column>
            <div align="center">
                  <img title="Modificar" style="cursor: hand" onclick="loadPage('editAuditor.htm?codigo=${row.codAuditor}')" height="15" 
                  src="${pageContext.request.contextPath}/imagenes/boton_modificar.gif" width="15" align=middle border="0">
                  <img title="Detalle" style="cursor: hand" onclick="loadPage('verAuditor.htm?codigo=${row.codAuditor}')" height="15" 
                  src="${pageContext.request.contextPath}/imagenes/boton_buscar.gif" width="15" align="middle" border="0">
                  <img title="Auditorias de auditor" style="cursor: hand" onclick="loadPage('lAuditAuditor.htm?codigo=${row.codAuditor}')" height="15" 
                  src="${pageContext.request.contextPath}/imagenes/folder-open.png" width="15" align="middle" border="0">
                  <img title="Tipo de auditor" style="cursor: hand" onclick="loadPage('ldetauditor.htm?codigo=${row.codAuditor}')" height="15"
                  src="${pageContext.request.contextPath}/imagenes/info.gif" width="15" align="middle" border="0">
                  <img title="Eliminar Auditor" style="cursor: hand" onclick="loadPage('delAuditor.htm?codigo=${row.codAuditor}')" 
                  src="${pageContext.request.contextPath}/imagenes/boton_eliminar.gif" border="0" height="15" width="15" align="middle">
            </div>
         </display:column>
         <display:column title="A. Paterno" property="apePaterno"  sortable="true" headerClass="sortable" />
         <display:column title="A. Materno" property="apeMaterno"  sortable="true" headerClass="sortable" />
         <display:column title="A. Nombre" property="nombres"  sortable="true" headerClass="sortable" />
    </display:table>
    
</form:form>
 
 <jsp:include page="../pie.jsp" flush="true"/>